﻿using System;

namespace Useful.Date
{
    public class DateTimeHelper
    {
        public static DateTime CreateOnlyDate(DateTime dt)
        {
            return new DateTime(dt.Year, dt.Month, dt.Day);
        }

        public static DateTime CreateOnlyDateFirstDay(DateTime dt)
        {
            return new DateTime(dt.Year, dt.Month, 1);
        }

        public static DateTime CreateFirstDayInYear(int year)
        {
            return new DateTime(year, 1, 1);
        }
    }
}